//This class is designed to take input from the user and ask questions for the user to reply to.
package com.sjsayers.jtbae.input;
import java.io.*;

import com.sjsayers.jtbae.core.Movement;
/** This class is for handling user input and output */
public class ConsoleHandle {
	Movement move = new Movement();
	private String userInput;
	/**
	 * Sets a message with a carrot at the end for display.
	 * @param message the string you would like to display to the user
	 */
	public void setMessage(String message){
		System.out.println(message + " > ");
	}
	/**
	 * This returns what the user said.
	 * @return user input
	 */
	public String getUserInput(){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			userInput = br.readLine();
			return userInput;
			}
			catch(IOException IO) {
				System.out.println("getUserInput() had an error."); 
			}
		return userInput;
	}
}